package cn.wx.jove.core.entity;

import com.baomidou.mybatisplus.enums.IdType;

import java.util.Calendar;
import java.util.Date;
import java.util.TimeZone;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import cn.wx.common.persistence.base.BaseEntity;

/**
 * <p>
 * 
 * </p>
 *
 * @author  
 * @since 2018-12-14
 */
@TableName("vitualcoin")
public class Vitualcoin extends BaseEntity {

	@TableId(value="nid", type= IdType.AUTO)


	private Integer nid;


	private String btcoinprice;


	private String btcointurnover;


	private String btcoinpercent;


	private String ethprice;


	private String ethturnover;


	private String ethpercent;


	private String usdtprice;


	private String usdtturnover;


	private String usdtpercent;

//	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date currenttime;


	public Integer getNid() {
		return nid;
	}

	public void setNid(Integer nid) {
		this.nid = nid;
	}

	public String getBtcoinprice() {
		return btcoinprice;
	}

	public void setBtcoinprice(String btcoinprice) {
		this.btcoinprice = btcoinprice;
	}

	public String getBtcointurnover() {
		return btcointurnover;
	}

	public void setBtcointurnover(String btcointurnover) {
		this.btcointurnover = btcointurnover;
	}

	public String getBtcoinpercent() {
		return btcoinpercent;
	}

	public void setBtcoinpercent(String btcoinpercent) {
		this.btcoinpercent = btcoinpercent;
	}

	public String getEthprice() {
		return ethprice;
	}

	public void setEthprice(String ethprice) {
		this.ethprice = ethprice;
	}

	public String getEthturnover() {
		return ethturnover;
	}

	public void setEthturnover(String ethturnover) {
		this.ethturnover = ethturnover;
	}

	public String getEthpercent() {
		return ethpercent;
	}

	public void setEthpercent(String ethpercent) {
		this.ethpercent = ethpercent;
	}

	public String getUsdtprice() {
		return usdtprice;
	}

	public void setUsdtprice(String usdtprice) {
		this.usdtprice = usdtprice;
	}

	public String getUsdtturnover() {
		return usdtturnover;
	}

	public void setUsdtturnover(String usdtturnover) {
		this.usdtturnover = usdtturnover;
	}

	public String getUsdtpercent() {
		return usdtpercent;
	}

	public void setUsdtpercent(String usdtpercent) {
		this.usdtpercent = usdtpercent;
	}

	public Date getCurrenttime() {
		Calendar c = Calendar.getInstance(TimeZone.getTimeZone("GMT+8"));  
        c.setTime(currenttime);  
		return c.getTime();
	}
	
	public void setCurrenttime(Date currenttime) {
		this.currenttime = currenttime;
	}

	@Override
	public String toString() {
		return "Vitualcoin{" +
			", nid=" + nid +
			", btcoinprice=" + btcoinprice +
			", btcointurnover=" + btcointurnover +
			", btcoinpercent=" + btcoinpercent +
			", ethprice=" + ethprice +
			", ethturnover=" + ethturnover +
			", ethpercent=" + ethpercent +
			", usdtprice=" + usdtprice +
			", usdtturnover=" + usdtturnover +
			", usdtpercent=" + usdtpercent +
			", currenttime=" + currenttime +
			"}";
	}
}
